home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / processes / mp threaded sort / readme < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.0 KB  |  76 lines

  1. MP SortPicts Demo  1/7/97
  2.  
  3.  
  4. History of SortPicts.
  5.  
  6. The original version was used to show off the Thread Manager it was
  7. written by Randy Thelen using the Sprockets Framework. So I take no
  8. credit (or blame) for the majority of the code.  The biggest step in
  9. using MP is getting your application threaded. Randy did all this work.
  10.  
  11. During the OS formally known as Copland time frame Paul Forrester
  12. modified the code to run under Copland and to show off the two machine
  13. debugger debugging multiple Copland tasks. So that is why you
  14. will see a lot of reference to Copland in the source code.
  15.  
  16. I took the code and made it more Copland friendly and got it ready to go
  17. out on the DR1 CD.
  18.  
  19. The DR1 CD never went out and the OS formally known as Copland, was cancelled.
  20.  
  21. Since then the new MP API has been released so I modified the code once again
  22. to use MP tasks instead of Copland tasks. This is what you see today.
  23.  
  24.  
  25. The program uses the Thread Manager or MP tasks to get some work done. It
  26. doesn't require MP or even multiple CPU's. It enables the "Use MP tasks"
  27. menu item if it can start an MP Task. 
  28.  
  29.  
  30. So what are the cool things that the MPSortPicts can do?
  31.  
  32.  
  33. 1. Live Window Dragging
  34.  
  35.     To give you the cool BeOS demo look, I enabled live window dragging
  36.     for MP task windows. This shows the Mac can preemptively multitask like the
  37.     rest of them. When you drag an MPTask window, the animation continues to 
  38.     run in the window while you are dragging it around the screen.
  39.     
  40. 2. Continues to run then the mouse button is down.
  41.    
  42.    The MP Task windows continue to run when you hold down the mouse button.
  43.   
  44. 3. Continues to run even when your in Macsbug
  45.  
  46.  If you drop into Macsbug the MPTasks continue to run. Ooooh Coool.
  47.  
  48.  
  49. Caveats
  50.  
  51. I didn't spend much time on the blitter so it's not a very good Mac citizen.
  52. If you move the app into the background the MPtask continues to blit
  53. to the screen right over anything else. Also it only supports 8 bit single
  54. monitor blitting. If I get more time I'll fix these things.
  55.  
  56.  
  57.  
  58. Matt
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.